#include "../status_task.h"
#include "../../service/salve_conn.h"
#include "../../driver/pick/parts.h"
#include "../../driver/pick/pick_door.h"
#include "../../driver/pick/sensor.h"
#include "../../driver/analog.h"

namespace task {

using namespace utils;
using namespace driver;
using namespace service;
using namespace conn;

constexpr uint16_t APP_VERSION = 0x03;

void StatusTask::run() {

    for (;;) {
        salveConn->status_notify(
            APP_VERSION,
            sensor->status(),
            analog->change_value()
        );
        osDelay(500);
    }
}

}
